import 'package:flutter/material.dart';
import 'package:flutter_deer/ui/live/gun_grid_item.dart';
import 'package:flutter_deer/ui/live/gun_live_page.dart';
import 'package:flutter_deer/widgets/select_left_home_widget.dart';

import 'dynamic_button_page.dart';

void main() => runApp(const MainApp4());

class MainApp4 extends StatelessWidget {
  const MainApp4({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: '选择组件示例',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(title: Text('选择组件示例')),
        body: Padding(
          padding: const EdgeInsets.all(16.0),
          child: SelectionWidget(
            numberOptions: const [1, 2, 3, 4, 5],
            timeOptions: const ['15min', '30min', '60min'],
            onSelectionChanged: (number, time) {
              print('选择了$number个$time');
            },
          ),
        ),
      ),
    );
  }
}
